/*
 * @Author: 刘谕函1 11609278+liu-yuhan-1@user.noreply.gitee.com
 * @Date: 2021-11-18 23:21:54
 * @LastEditors: 刘谕函1 11609278+liu-yuhan-1@user.noreply.gitee.com
 * @LastEditTime: 2023-01-04 16:21:33
 * @FilePath: \寒假作业\vue-admin-template-master\src\utils\auth.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Cookies from 'js-cookie'

const TokenKey = 'hrsaas-ihrm-token' // 设定一个独一无二的key

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
// // 获取时间戳
// export function getTimeStamp() {
//   return Cookies.get(timeKey)
// }
// // 设置时间戳
// export function setTimeStamp() {
//   Cookies.set(timeKey, Date.now())
// }
